//
//  TestViewController.m
//  UIAppearenceTest
//
//  Created by wangrui on 14-1-3.
//  Copyright (c) 2014年 PPS. All rights reserved.
//

#import "TestViewController.h"

@interface TestViewController ()

@end

@implementation TestViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
}


- (void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
    
    //[[UINavigationBar appearance] setBarTintColor:[UIColor redColor]];
    
    UINavigationBar *bar = [[UINavigationBar alloc] initWithFrame:CGRectMake(0, 100, 320, 44)];
    [self.view addSubview:bar];
    
    UINavigationItem *item = [[UINavigationItem alloc]initWithTitle:@"back"];
    [bar pushNavigationItem:item animated:YES];

}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
